package com.thz.friend.pojo.blog;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.thz.common.core.pojo.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @Description
 * @Author thz
 * @Date 2025/5/10
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_blog")
public class Blog extends BaseEntity {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    private Long blogId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long courseId;
    private String title;
    private String content;
}